<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="_fragments :: header(~{::title})">
    <link rel="stylesheet" type="text/css" href="../static/semantic.min.css" th:href="@{/semantic.min.css}">
    <script
            src="https://code.jquery.com/jquery-3.1.1.min.js"
            integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
            crossorigin="anonymous"></script>
    <script src="../static/semantic.min.js" th:href="@{/semantic.min.js}"></script>
    <meta charset="UTF-8">
    <title>分类</title>
</head>
<body>

    <div class="ui borderless main menu " th:replace="_fragments::menu(2,blue)">
        <div class="ui huge text container">
            <a class="item" href="index.html" th:href="@{/}">
                <i class="home icon" ></i> 主页
            </a>
            <a class="item active blue" th:href="@{/category}">
                <i class="folder icon"></i> 分类
            </a>
            <a class="item" href="archive.html" th:href="@{/archive}">
                <i class="archive icon"></i> 归档
            </a>
            <a class="item" href="tags.html" th:href="@{/tags}">
                <i class="tags icon"></i> 标签
            </a>
            <div class="ui simple green dropdown item">
                更多
                <i class="dropdown icon"></i>
                <div class="menu">
                    <a class="item"><i class="chess king icon"></i> 关于作者</a>
                    <a class="item"><i class="language icon"></i> 选择语言</a>
                    <a class="item"><i class="settings icon"></i> 账号设置</a>
                </div>
            </div>
            <div class="right item">
                <div class="ui icon input">
                    <input type="text" placeholder="搜索...">
                    <i class="search icon"></i>
                </div>
            </div>
        </div>
    </div>
    <div class="ui borderless grid">
            <div class="ui two wide column "></div>
            <div class="ui eleven wide column">
                <div class="ui container">
                    <br>
                    <div th:if="${categoryList} != null">
                        <h1 class="ui blue">文章分类</h1>
                    </div>

                    <div th:if="${categoryList} == null and ${category} != null" class="left fixed">
                        <h1 th:text="'分类：'+${category.name}">分类标题</h1>
                    </div>

                    <br>
                    <div class="ui huge middle aligned animated list" th:if="${categoryList} != null" th:each="category:${categoryList}">
                        <div class="item">
                            <div class="content">
                                <div class="header"> <i class="book icon"></i><a href="#" th:href="@{'/category/'+${category.id}}" th:text="${category.category_name} + '('+${category.number}+')' ">Java开发</a></div>
                            </div>
                        </div>
                    </div>
                    <div class="ui middle aligned animated list" th:if="${tagsList} == null" th:each="blogDes:${blogDesList}">
                        <div class="item">
                            <div class="content">
                                <div class="header"> <i class="linkify icon"></i><a href="#" th:text="${blogDes.getTitle()} " th:href="@{'/blog/'+${blogDes.id}}">Java开发</a></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="ui three wide column "></div>
     </div>
</body>
</html>